import request from '@/api/request.js'

// 我的求购列表
export async function purchaseList(params) {
	return request('/purchase/list', params, 'post')
}

// 发布求购
export async function purchaseSave(params) {
	return request('/purchase/save', params, 'post')
}

// 关闭求购
export async function purchaseClose(params) {
	return request('/purchase/closePurchase', params)
}

// 求购详情 用于：编辑求购（再次发布）回显
export async function purchaseDetail(params) {
	return request('/purchase/purchaseDetail', params)
}

// 查看报价
export async function purchaseViewQuote(params) {
	return request('/purchase/viewQuote', params)
}

// 商品模板
export async function purchaseGoodsList(params) {
	return request('/purchase/purchaseGoodsList', params, 'post')
}

// 获取企业信息
export async function getEnterpriseInformation(params) {
	return request('/purchase/getEnterpriseInformation', params)
}

// 获取货币
export async function getCurrencyList(params) {
	return request('/purchase/getCurrencyList', params)
}


